﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPC.Offer.IRepository
{
    public interface ISystem_RoleRightRepository : IRepository<Model.System_RoleRight>
    {
        /// <summary>
        /// 删除角色权限
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        dynamic Role_PowerDelete(int id);
        /// <summary>
        /// 角色权限修改
        /// </summary>
        /// <param name="Roleid"></param>
        /// <param name="Powerid"></param>
        /// <returns></returns>
        dynamic RoleBatchUpdate(int Roleid, string Powerid);
           /// <summary>
        /// 测试是否有该权限
        /// </summary>
        /// <param name="Roleid"></param>
        /// <param name="Url"></param>
        /// <returns></returns>
        dynamic GetIsRoleRight(string Roleid, string Url, ref int Modid);
        /// <summary>
        /// 测试是否有该权限
        /// </summary>
        /// <param name="Roleid"></param> 
        /// <param name="Url"></param>
        /// <returns></returns>
        dynamic GetIsRoleRight(string RoleID, int MenuID);
    }
}
